﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _9._2
{
    class Program
    {
        static void Show(int n)
        {
            int i, j, k;
            for (i = 1; i <= 2*n - 1;i++)
            {
                if(i<=n)
                {
                    for(j=n-i;j>0;j--)
                    {
                        Console.Write(" ");
                    }
                    for(k=i;k>0;k--)
                    {
                        Console.Write("* ");
                        
                    }
                    
                }
                else
                {
                    for (j = i - n; j > 0; j--)
                    {
                        Console.Write(" ");
                    }
                    for (k = 2 * n - i; k > 0; k--)
                    {
                        Console.Write("* ");
                    }
                }
                Console.WriteLine();
            }
        }
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            Show(n);
            Console.ReadKey();
        }
    }
}
